/**
 * Created by kangdaye on 16/6/13.
 */
app.service('freightService',['$http',function($http) {
    this.getDetail = function (getData,callback) {
        $http.get(servicePath + 'freight/get',{params : getData}).success(callback);
    };

    this.delete = function (postData,callback) {
        $http.post(servicePath + 'freight/delete',postData).success(callback);
    };

    this.add = function (postData,callback) {
        $http.post(servicePath + 'freight/add',postData).success(callback);
    };

    this.update = function (postData,callback) {
        $http.post(servicePath + 'freight/update',postData).success(callback);
    };

}]);
